import VueRouter from 'vue-router'
import Login from '../view/login.vue'
import Register from '../view/register.vue'
import Users from '../view/users.vue'

export default new VueRouter({
    routes: [
        {
            path: '/login',
            name: 'login',
            component: Login
        },
        {
            path: '/register',
            component: Register
        },
        {
            path: '/users',
            component: Users
        },
        {
            path: '/',
            redirect: { name: 'login' },
        }
    ]
})